<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html><head>
        <link rel="stylesheet" type="text/css" href="apidocs.css"/>
        <title>API docs for &ldquo;sympy.series.limits&rdquo;</title>
        </head>
        <body><h1 class="module">Module s.s.limits</h1><span id="part">Part of <a href="sympy.series.html">sympy.series</a></span><div class="toplevel"><div class="undocumented">Undocumented</div></div><table class="children"><tr class="function"><td>Function</td><td><a href="#sympy.series.limits.limit">limit</a></td><td><div><p>Compute the limit of e(z) at the point z0.</p>
</div></td></tr><tr class="class"><td>Class</td><td><a href="sympy.series.limits.Limit.html">Limit</a></td><td><div><p>Represents unevaluated limit.</p>
</div></td></tr></table>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.series.limits.limit">limit(e, z, z0, dir='+'):</a></div>
            <div class="functionBody"><div><p>Compute the limit of e(z) at the point z0.</p>
<p>z0 can be any expression, including oo and -oo.</p>
<p>For dir=&quot;+&quot; (default) it calculates the limit from the right 
(z-&gt;z0+) and for dir=&quot;-&quot; the limit from the left (z-&gt;z0-). 
For infinite z0 (oo or -oo), the dir argument doesn't matter.</p>
<p>Examples:</p>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>limit(sin(x)/x, x, 0)
<span class="py-output">1</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>limit(1/x, x, 0, dir=<span class="py-string">&quot;+&quot;</span>)
<span class="py-output">oo</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>limit(1/x, x, 0, dir=<span class="py-string">&quot;-&quot;</span>)
<span class="py-output">-oo</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>limit(1/x, x, oo)
<span class="py-output">0</span></pre>
<p>Strategy:</p>
<p>First we try some heuristics for easy and frequent cases like 
&quot;x&quot;, &quot;1/x&quot;, &quot;x**2&quot; and similar, so that it's 
fast. For all other cases, we use the Gruntz algorithm (see the gruntz() 
function).</p>
</div></div>
            </div></body>
        